package rs.ac.bg.etf.estudent.fragment;

import rs.ac.bg.etf.estudent.R;
import rs.ac.bg.etf.estudent.util.Data;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

public class InfoFragment extends Fragment {
	
	private TextView mInfoView;
	private TextView mInfoDate;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		View view = inflater.inflate(R.layout.fragment_info, container, false);
		
		mInfoView = (TextView)view.findViewById(R.id.information);
		mInfoDate = (TextView)view.findViewById(R.id.info_date);
		
		return view;
	}
	
	@Override
	public void onStart() {
		// TODO Auto-generated method stub
		super.onStart();
		mInfoView.setText(Data.INFO);
		mInfoDate.setText(Data.DATE);
	}

}
